/// <reference path="../Scripts/jquery-1.7.1.min.js" />
/// <reference path="../Scripts/knockout-2.1.0.js" />

jQuery(document).ready(function () {
    var MyApplicationViewModel = new ApplicationViewModel();
    ko.applyBindings(MyApplicationViewModel, document.getElementById('addApplicationNode'));
	ko.applyBindings(MyApplicationViewModel, document.getElementById('modifyApplicationNode'));
	ko.applyBindings(MyApplicationViewModel, document.getElementById('listApplicationNode'));
    jQuery("#newApplicationForm").validate();
    jQuery('input:submit').click(function () {
        if (jQuery("#newApplicationForm").valid())
        {
            MyApplicationViewModel.AddApplication();

        }
        return false;
    });

    

    
});